import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-core/core/memberRechargeTrade/list',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const getStatistics = (current, size, params) => {
  return request({
    url: '/api/rb-core/core/memberRechargeTrade/statistics',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

/* 服务商 导出 */
export const getExport = (params) => {
  return request({
    headers: {
      "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    },
    responseType: 'blob',
    url: '/api/rb-core/core/memberRechargeTrade/export',
    method: 'get',
    params: {
      ...params,
    }
  })
}

/* 服务商 导出模板 */
export const getExportTemplate = (params) => {
  return request({
    headers: {
      "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    },
    responseType: 'blob',
    url: '/api/rb-core/core/memberRechargeTrade/export-template',
    method: 'get',
    params: {
      ...params,
    }
  })
}